<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
       .div1 {
        position: relative;
        display: inline-block;
       }
       .div1 img {
            width: 100%; 
            height: auto;
       }
       .div2 {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            text-align: center;
            justify-content: center;
            line-height: 50px;
            color: white; 
            font-size: 20px; 
       }
       .div3 {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            text-align: center;
            justify-content: center;
            line-height: 50px;
            color: white; 
            font-size: 20px; 
       }
       .div4 {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            text-align: center;
            justify-content: center;
            line-height: 50px;
            color: white; 
            font-size: 20px; 
       }
       .div5 {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            text-align: center;
            justify-content: center;
            line-height: 50px;
            color: white; 
            font-size: 20px; 
       }
       .div2:hover {
            background-image: url("../img/bg5.png");
            height: 58px;
       }
       .div3:hover {
            background-image: url("../img/bg6.png");
            height: 58px;
       }
       .div4:hover {
            background-image: url("../img/bg7.png");
            height: 58px;
       }
       .div5:hover {
            background-image: url("../img/bg8.png");
            height: 58px;
       }
    </style>
</head>
<body>
   <div class="div1">
        <img src="../img/bg1.png">
        <div class="div2">五彩导航</div>
   </div>
   <div class="div1">
        <img src="../img/bg2.png">
        <div class="div3">五彩导航</div>
    </div>
    <div class="div1">
        <img src="../img/bg3.png">
        <div class="div4">五彩导航</div>
   </div>
   <div class="div1">
        <img src="../img/bg4.png">
        <div class="div5">五彩导航</div>
    </div>
</body>
</html>